package com.xbongbong.pro.statistic.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @ClassName DataWarningEnableDTO
 * @Description 启用/关闭数据预警
 * @Author mengna.Deng
 * @Date 2021/4/20 15:25
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class DataWarningEnableDTO extends BaseDTO {
    /**
     * 数据预警id
     */
    @NotNull(message = "{dto.msg.dataWarningEnable.id.NotNull}")
    private Long id;
    /**
     * 是否启用
     */
    @NotNull(message = "{dto.msg.dataWarningEnable.enable.NotNull}")
    @Range(max = 1, message = "{dto.msg.dataWarningEnable.enable.Range}")
    private Integer enable;
}
